package com.zyso.service;

import com.zyso.pojo.Site;
import com.zyso.vo.DetailVO;
import com.zyso.vo.SearchResultVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ZySoService {
    /**
     * 多源搜索
     *
     * @param wb 关键字
     * @return
     */
    List<SearchResultVO> searchByWb(String wb, HttpServletRequest request);

    /**
     * 多源搜索
     *
     * @param sites
     * @param wb
     * @return
     * @throws InterruptedException
     */
    List<SearchResultVO> search(List<Site> sites, String wb) throws InterruptedException;

    /**
     * 获取资源详情
     *
     * @param siteId
     * @param id     资源ID
     * @return
     */
    DetailVO getDetail(Integer siteId, Integer id);
}
